package com.njwb.subject.boot;

import com.njwb.subject.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SubjectBoot {
    private SubjectService subjectService;
    @Autowired
    public SubjectBoot(SubjectService subjectService){
        this.subjectService = subjectService;
        subjectService.load();
    }

}
